package org.tank;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.*;


public class TankImage {
    //上下左右和子弹
    public static  BufferedImage tankL,tankR,tankU,tankD,bull;
   // 爆炸效果
    public static BufferedImage[] explode=new BufferedImage[16];


    static {
        try {
            tankL = ImageIO.read(new FileInputStream("src/main/resources/tankL.gif"));
            tankR = ImageIO.read(new FileInputStream("src/main/resources/tankR.gif"));
            tankU = ImageIO.read(new FileInputStream("src/main/resources/tankU.gif"));
            tankD = ImageIO.read(new FileInputStream("src/main/resources/tankD.gif"));
            bull = ImageIO.read(new FileInputStream("src/main/resources/1.gif"));
            //爆炸效果
            for (int i = 0; i <=15 ; i++) {
                 explode[i]= ImageIO.read(new FileInputStream("src/main/resources/e"+(i+1)+".gif"));
            }

        }catch (Exception e){
            e.printStackTrace();
        }


    }







}

